﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace NanaTest
{
    class Program
    {
        //The "Csharp_C.dll" is copied into main_exe\\bin\\Debug folder.
        [DllImport("Csharp_C.dll", EntryPoint = "fnCsharp_C",
         ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
        static extern int sum();

        static void Main(string[] args)
        {
            sum();
        }
    }
}
